<?php 
include '../lock.php';
include '../../public/common/mysql_connect.php';

$username=$_POST['username'];
$password=$_POST['password'];
$id=$_POST['id'];

$sql="update user set username='{$username}',password='{$password}' where id={$id}";

if(mysqli_query($conn,$sql)){
	echo '<script>location="index.php"</script>';
}
?>